-module(aws_keys_test).

-include_lib("eunit/include/eunit.hrl").

-define(SIGNATURE, "ie0sbopgFCWy6+uXXlo+Lhsu4iM=").

new_instance_test() ->
    aws_keys:new("", "").

save_get_test() ->
    Keys = aws_keys:new("abc", "abc+(123\""),
    ?assert(Keys:identifier() == "abc"),
    ?assert(Keys:sign_request("abc") == ?SIGNATURE).
